import { request } from '@pkg/request/src';

enum Api {
  page = '/yinlianPayParam/page',
  list = '/yinlianPayParam/list',
  get = '/yinlianPayParam/get',
  add = '/yinlianPayParam/save',
  update = '/yinlianPayParam/update',
  remove = '/yinlianPayParam/remove',
}

export const page = (params) => request.get({ url: Api.page, params: params }, { errorMessageMode: 'none' });

export const yinLianPayParamList = () => request.get({ url: Api.list }, { errorMessageMode: 'none' });

export const get = (id: string) => request.get({ url: Api.get, params: { id: id } }, { errorMessageMode: 'none' });

export const add = (params) => request.post({ url: Api.add, params: params }, { errorMessageMode: 'none' });

export const update = (params) => request.post({ url: Api.update, params: params }, { errorMessageMode: 'none' });

export const remove = (ids: string) => request.post({ url: Api.remove, params: { ids: ids } }, { errorMessageMode: 'message' });
